<template>
  <div class="hello">
    <h1>{{ msg }}</h1>
    <p>
      below is a remote vue comp emitted by hel-micro
      <a href="https://tnfe.github.io/hel/" target="_blank" rel="noopener"
        >learn hel-micro</a
      >.
    </p>
    <RemoteComp name="loaded in codesandbox" />
  </div>
</template>

<script>
// https://github.com/hel-eco/hel-tpl-remote-vue3-comps-ts
import comps from "hel-tpl-remote-vue3-comps-ts";

export default {
  name: "HelloWorld",
  components: {
    RemoteComp: comps.HelloWorld,
  },
  props: {
    msg: String,
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h3 {
  margin: 40px 0 0;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a {
  color: #42b983;
}
</style>
